﻿#ifndef VOLUMESET_H
#define VOLUMESET_H

#include <QLabel>
#include <QPushButton>
#include <QWidget>
#include <QtNetwork>
#include <QMessageBox>

class VolumeSet : public QWidget
{
    Q_OBJECT
public:
    explicit VolumeSet(QWidget *parent = 0);

    QPushButton *AutoVolumeIncrease;
    QPushButton *AutoVolumeDecrease;
    QLabel *     AutoVolume;
    QLabel *     AutoVolumeLB;

    QLabel *ttsSpeedText;
    QLabel *ttsTimbreText;

    QPushButton *ManVolumeIncrease;
    QPushButton *ManVolumeDecrease;
    QLabel *     ManVolume;
    QLabel *     ManVolumeLB;

    QPushButton *GBJTVolumeIncrease;
    QPushButton *GBJTVolumeDecrease;
    QLabel *     GBJTVolume;
    QLabel *     GBJTVolumeLB;

    QPushButton *OK;
    QPushButton *Cancel;
    QPushButton *mimajihuo;

    QVector<unsigned char> Volume;

    QMessageBox msgBox;

    void msgBoxShow(QString msg);
    void msgBoxClose();
    void syncVolume(QList<int> volume);

private:
    QPalette background;

private slots:
    void DecreaseAutoVolume();
    void IncreaseAutoVolume();

    void DecreaseManVolume();
    void IncreaseManVolume();

    void DecreaseGBJTVolume();
    void IncreaseGBJTVolume();

    void setVolume();
signals:
    void sendSetVolume(QString);
};

#endif  // VOLUMESET_H
